package com.gopay.bis.citic.ebank.impl;

import com.gopay.bis.citic.ebank.operation.CiticB2bQuery;
import com.gopay.common.domain.bank.BaseMessage;
import com.gopay.common.domain.bank.citic.ebank.pay.CiticB2bMessage;
import com.gopay.common.exception.GopayException;
import com.gopay.remote.bank.ICertHelper;
import com.gopay.remote.bank.businesses.BankService;

/**
 * @CiticB2bBankServiceImpl.java
 * @author wanggang
 * @2013-12-3 下午5:09:24 www.gopay.com.cn Inc.All rights reserved.
 */
public class CiticB2bBankServiceImpl implements BankService {

	private ICertHelper citicB2bCerthelper;
	private CiticB2bQuery citicB2bQuery;

	@Override
	public Object sign(BaseMessage msg) throws GopayException {
		return citicB2bCerthelper.sign(msg);
	}

	@Override
	public Object verify(BaseMessage msg) throws GopayException {
		return citicB2bCerthelper.verify(msg);
	}

	@Override
	public Object query(Object obj) throws GopayException {
		CiticB2bMessage message = (CiticB2bMessage) obj;
		return citicB2bQuery.query(message);
	}

	public void setCiticB2bCerthelper(ICertHelper citicB2bCerthelper) {
		this.citicB2bCerthelper = citicB2bCerthelper;
	}

	public void setCiticB2bQuery(CiticB2bQuery citicB2bQuery) {
		this.citicB2bQuery = citicB2bQuery;
	}

	@Override
	public Object dayend(Object obj) throws GopayException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Object refund(Object obj) throws GopayException {
		// TODO Auto-generated method stub
		return null;
	}

}
